<?php
/**
 * 用户控制器
 * Created by  你老板
 * User: 你老板
 * Date: 2018/11/10
 * Time: 下午 5:10
 */
namespace app\home\controller;
use think\Controller;
use think\Request;
use \think\Db;
use app\admin\lib\Tree;
class User extends Controller{
	public function _initialize() {
	}
   //首页查询品牌
	public function userinfo(){
    $db = Db::name('member');
	  if (isset($_POST['id'])) {

	  		$list = $db->where(['id'=>$_POST['id']])->find();

				echo json_encode($list);
				// return $list;
	  }
	}

}
